//
//  NEDWebViewController.h
//  MoreCoin
//
//  Created by tete on 2019/8/15.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import <WebViewJavascriptBridge/WKWebViewJavascriptBridge.h>

NS_ASSUME_NONNULL_BEGIN

@interface NEDWebViewController : UIViewController

@property (strong, nonatomic, readonly) WKWebView * webView;

@property (copy, nonatomic) NSString * url;
@property (copy, nonatomic) NSString * htmlString;
@property (copy, nonatomic) NSString * navTitle;

/// appinfo中 initJsonParams 字段附加的数据
@property (retain, nonatomic) NSDictionary * appInfoAppendJsonParames;

/// 显示样式
@property (retain, nonatomic) NSNumber * isShowTitleBar;
@property (retain, nonatomic) NSNumber * statusBarFontBlack;
@property (copy, nonatomic) NSString *statusBarBgColor;

- (instancetype)initWithURL:(NSString *)url;
- (instancetype)initWithHTMLString:(NSString *)htmlString;

/// 子类实现此方式注册js方法
- (void)nedWebview_registJSBridge:(WKWebViewJavascriptBridge *)bridge;
/// 需要附加的APPInfo信息
- (NSMutableDictionary *)nedWebview_appendAppInfo;

@end

NS_ASSUME_NONNULL_END
